# -*- coding；utf-8 -*-
# toStr

# str()
tuples = (1, 2, 3)
print(type(str(tuples)), str(tuples))  # <class 'str'> (1, 2, 3)
print(type(repr(tuples)), repr(tuples))  # <class 'str'> (1, 2, 3)
#
# for x in range(1, 11):
#     print(repr(x).rjust(2), repr(x**2).rjust(3), repr(x**3).rjust(4))


for x in range(1, 11):
    print('{0:2d} {1:3d} {2:4d}'.format(x, x ** 2, x ** 3))

    # print('{0:2d} {1:3d} {2:4d}'.format(x, x * x, x * x * x))
